<?xml version="1.0" encoding="UTF-8"?>
<page id="${moduleName}">
    <form id="${subModuleName}_form" saveAction="${url}/saveOrUpdate">
    <#if  validator?? >
        <#list validator as item>
            <validate id="${item.name}" value="${item.rule}" message="${item.label}"/>
        </#list>
    </#if>
    <#list formItems as item>
        <formItem label="${item.label}" type="${item.type}" id="${item.id}"/>
    </#list>
        <formItem type="hidden" id="id"/>
        <formItem type="hidden" id="versionNO"/>
    </form>
<#if  queryFormItems?? >
    <form id="${subModuleName}_query_form">
        <#list queryFormItems as item>
            <formItem label="${item.label}" type="${item.type}" id="${item.id}" queryField="true"
                      <#if item.matchType?? >matchType="${item.matchType}"</#if>/>
        </#list>
    </form>
</#if>
</page>